﻿using System;
using RazakiBLL;

namespace RazakiSite.UserControls
{
    public partial class UCWork : BaseUserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ConfigControls();
        }

        private void ConfigControls()
        {
            UowRazaki uowRazaki = new UowRazaki();
            var works = uowRazaki.WorkRepository.GetAllInSixItemsGroups();

            hdnGroupsCount.Value = works.Count.ToString();

            RRptWorks.DataSource = works;
            RRptWorks.DataBind();
        }
    }
}